package com.xuecheng.content.service;

import com.xuecheng.content.model.dto.BindTeachplanMediaDto;
import com.xuecheng.content.model.dto.TeachplanDto;
import com.xuecheng.content.model.po.TeachplanMedia;
import com.xuecheng.content.model.dto.SaveTeachplanDto;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * ClassName: TeachplanService
 * Package: com.xuecheng.content.service
 * Description: 课程计划基本信息管理业务接口
 *
 * @Author Endeavor-ZQB
 * @Create 2023/1/30 18:59
 * @Version 1.0
 */
public interface TeachplanService {

    /**
     *  查询课程计划树型结构
     * @param courseId  课程id
     * @return
     */
    public List<TeachplanDto> findTeachplayTree(long courseId);

    /**
     * @description 只在课程计划
     * @param teachplanDto  课程计划信息
     */
    public void saveTeachplan(SaveTeachplanDto teachplanDto);

    /**
     * 删除课程计划中的小节
     * @param teachplanId
     */
    public void deleteTeachplanById(@PathVariable Long teachplanId);

   /**
    * @Description 课程计划的上移和下移
    * @Param [index, teachPlanId] 索引，课程id
    * @return void
    */
    public void upDown(String index, Long teachPlanId);


    /**
     * @description 教学计划绑定媒资
     * @param bindTeachplanMediaDto
     * @return com.xuecheng.content.model.po.TeachplanMedia
     * @author Mr.M
     * @date 2022/9/14 22:20
     */
    public TeachplanMedia associationMedia(BindTeachplanMediaDto bindTeachplanMediaDto);

    /**
     * @description 删除教学计划与媒资之间的绑定关系
     * @param teachPlanId  教学计划id
     * @param mediaId  媒资文件id
     * @return void
     * @author Mr.M
     * @date 2022/9/14 22:21
     */
    public void delAassociationMedia(Long teachPlanId, String mediaId);
}
